package my.design.mediator;

/**
 * @author zp
 * @version 1.0
 * @description: 中介者抽象类
 * @date 2022/10/27 19:07
 */
public abstract class Mediator {
    //将给中介者对象，加入到集合中
    public abstract void register(String colleagueName, Colleague colleague);

    //接收消息, 具体的同事对象发出
    public abstract void getMessage(int stateChange, String colleagueName);

    public abstract void sendMessage();
}
